package com.emily.login.service.impl;

import com.emily.login.dao.SysUserRepository;
import com.emily.login.dao.entity.SysUser;
import com.emily.login.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private SysUserRepository sysUserRepository;
    @Override
    public SysUser login(String username,String password){
        SysUser sysUser = sysUserRepository.findByUserName(username);
        if(sysUser != null){

        }
        return  sysUser;
    }
}
